import './assets/main.css'

import { createApp } from "vue";
import { createPinia } from "pinia";
// Element Plus完整引入
// import ElementPlus from 'element-plus'
// import 'element-plus/dist/index.css'
import { router } from "@/router/index";
import App from "./App.vue";
// pinia 持久化插件
import piniaPluginPersist from 'pinia-plugin-persistedstate'

const pinia = createPinia();
const app = createApp(App);
// 注册persist插件并配置
pinia.use(piniaPluginPersist)
// app.use(ElementPlus)
app.use(pinia);
app.use(router);

app.mount("#app");
